package com.beasts.ant.page.service;

import com.beasts.ant.page.entity.APGroupPage;
import org.springframework.data.domain.Example;
import org.springframework.data.jpa.repository.Query;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * @author cn_zkn
 * @date 20/04/2018 11:04 AM
 * @since 1.0
 */
public interface IInitDataService {

    List<APGroupPage> findAll();
    List<APGroupPage> findAll(Example<APGroupPage> example);

    /**
     * 条件查询菜单
     * @return
     * @param req
     */
    @RequestMapping({ "/getMenuByPageType"})
    @ResponseBody
    default List<APGroupPage> findByPageType(HttpServletRequest req) {
        return findByPageType(req);


    }
}
